///////////////////////////////////////////////////////////////////////////////
//
// DBT86 Project : x86 Platform : x86 Interpreter : MMX/SSE/SSE2 instructions
// Copyright (C) 2004 by Ben Hertzberg and Stanford University
// All Rights Reserved
//
// This code may not be used for any purpose without the express written
// consent of the author.  See the LICENSE.txt file for details.
//
//
// DESCRIPTION
//
// This unit implements interpretation of x86 multimedia extensions.
//
// TODO: implement
//
///////////////////////////////////////////////////////////////////////////////

#include "interp.h"

// TODO: real MMX/SSE/SSE2 implementation

void LDMXCSR() {
  IVAL m;
  UINT32 v;
  LOAD_RM_R_DWORD(m);
  v = (UINT32)m;
  X86_CTXT(SSEscr) = v & 0xFFFF;
}

void STMXCSR() {
  STORE_RM_DWORD(X86_CTXT(SSEscr));
}
